<form>
  {{#d-modal-body title="topic.auto_close_title" autoFocus="false"}}
    {{auto-close-form autoCloseTime=model.auto_close_time
                      autoCloseValid=auto_close_valid
                      autoCloseBasedOnLastPost=model.details.auto_close_based_on_last_post
                      limited=model.details.auto_close_based_on_last_post }}
    {{#if willCloseImmediately}}
      <div class="warning">
        {{fa-icon "warning"}}
        {{willCloseI18n}}
      </div>
    {{/if}}
  {{/d-modal-body}}
  <div class="modal-footer">
    {{d-button class="btn-primary" disabled=disable_submit label="topic.auto_close_save" action="saveAutoClose"}}
    <a {{action "closeModal"}}>{{i18n 'cancel'}}</a>
    {{conditional-loading-spinner size="small" condition=loading}}
    {{d-button class="pull-right" action="removeAutoClose" label="topic.auto_close_remove"}}
  </div>
</form>
